<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
</head>
<head>

	</head>
<body onload="checkCookie()"></body>
<!-- 	<script src="assets/jquery-3.1.1.min.js"></script>
	<script>
				window.onload=function(){
					$.ajax({
						url:'http://localhost:9523/eto/customer/info',
						dataType:'json',//服务器返回json格式数据
						type:'get',//HTTP请求类型
						timeout:1000000,//超时时间设置为10秒；
						success:function(data){
							console.log(data)
							var x=getCookie("customerName")
							console.log(x)
							//$("#price").text(data[0].price)
	// 						let str = ""
	// 						for(let i=0;i<data.length;i++){
	// 							str+="<tr><td><img src='img/1.png' alt='aaaa' class='img-thumbnail' style='height: 100px;'></td><td>"+data[i].disheNo+"</td><td>"+data[i].disheName+"</td><td>"+data[i].disheKind+"</td><td>"+data[i].cuisine+"</td><td>"+data[i].price+"</td><td><button type='button' class='btn-info'>收藏</button>&nbsp;<button type='button' class='btn-success'>下单</button></td></tr>"+"<br/>"
	// 	
	// 						}
	// 						$("#content").append(str)
							
						},
						error:function(xhr,type,errorThrown){
							
						}
					});
				}
				function getCookie(cname){
					var name = cname + "=";
					var ca = document.cookie.split(';');
					for(var i=0; i<ca.length; i++) {
						var c = ca[i].trim();
						if (c.indexOf(name)==0) { return c.substring(name.length,c.length); }
					}
					return "";
				}

			</script> -->
</html>
